﻿''' <summary>
''' Predifined Patterns
''' </summary>
Public Class Patterns

    ''' <summary>
    ''' English alphabet lower case (26 characters)
    ''' </summary>
    Public Const EnglishAlphaLowerCase As String = "abcdefghijklmnopqrstuvwxyz"

    ''' <summary>
    ''' English alphabet upper case (26 characters)
    ''' </summary>
    Public Const EnglishAlphaUpperCase As String = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

    ''' <summary>
    ''' English Alphabet upper and lower cases (52 characters)
    ''' </summary>
    Public Const EnglishAlphaMixedCase As String = EnglishAlphaLowerCase & EnglishAlphaUpperCase

    ''' <summary>
    ''' Latin Numerical Characters
    ''' </summary>
    ''' <remarks></remarks>
    Public Const Numerical As String = "0123465789"



    ''' <summary>
    ''' Some of the patterns based OWASP Validation Library
    ''' </summary>
    Public Class RegEx

        '''' <summary>
        '''' Valid E-mail Pattern
        '''' </summary>
        Public Const EmailPattern As String = "^[\w\-\+\&\*]+(?:\.[\w\-\_\+\&\*]+)*@(?:[\w-]+\.)+[a-zA-Z]{2,7}$"

        ''' <summary>
        ''' 9 digit social security number with dashes
        ''' </summary>
        Public Const US_SSNPattern As String = "^\d{3}-\d{2}-\d{4}$"

    End Class


End Class
